//cmd.h
#ifndef _CMD_H
#define _CMD_H
#include "stm32f10x.h"
#include "string.h"
#include "led.h"
#include "system.h"
#include "systick.h"
#include "key.h"
#include "beep.h"
#include "exti.h"
#include "uart.h"
#include "interrupt.h"

typedef void (*cb_t)(void);

typedef struct _cmd{
	char* name;
	cb_t callback;
}cmd_t;


extern cmd_t* find_cmd(char* name);


#endif

